/*
 * BAM.h
 *
 * Created: 11/10/2013 3:24:34 PM
 *  Author: Daniel
 */ 

/** Initializes the serial commutation
*	It sets the baud in order commutate over a BAM device.
*	It sets the frame format and enables the receiver and transmitter.
*/
void serial_init(void);

/*	 transmits desired characters to terminal
 *	 receives a character through the variable data to have transmitted to terminal.
 *	 @param data is a char 
 */
void serial_putc(char data);

 /*	 receives characters trough the terminal 
 *	 receives a character from the terminal that is returned as char
 *	 @param data is the information that need to be transmitted to terminal
 */
char serial_getc(void);

 /*	 transmits arrays to the terminal
 *	 use a pointer to navigate arrays and transmits them to the terminal use serial_putc
 *	 @param *str is a pointer thats pointing into an array
 */
void serial_puts(char *);